#!/usr/bin/python
# Filename: method.py

class Person:
    def sayHi(self):
        print 'Hello, my name is %s' % self.name
    
    def myMethod(self):
        print 'def by Max,is it rights?'
        
    def test(self,test):
        print test
        
    def __init__(self,name):
        self.name = name

p = Person('Max')
p.sayHi()
p.myMethod()
p.test('fuck')
p.test(1000)
# This short example can also be written as Person().sayHi()